<%--
  Created by IntelliJ IDEA.
  User: humeng
  Date: 2022/10/19
  Time: 10:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>waite</title>
</head>
<body>
<%!
    int time = 5;
%>
<%
    response.setHeader("refresh","1");
    out.println("<h1>登陆成功,在"+time+"后即将跳转到首页</h1>");
    time--;
    if (time<=0){
        time=5;
        response.sendRedirect("success.jsp");
    }

%>

<script>
    let xmlHttpRequest = new XMLHttpRequest();

</script>

</body>
</html>
